package com.czl.base.event

import com.czl.base.config.ComplaintType
import com.czl.base.config.OrderType
import com.czl.base.data.bean.MembersBean
import com.czl.base.data.bean.TodoBean
import com.czl.base.data.bean.tengyun.AssetHandleFacilityBean
import com.czl.base.data.bean.tengyun.PurchaseOrderBean
import com.czl.base.data.bean.tengyun.AssetHandleSortBean
import com.czl.base.data.bean.tengyun.SortBean
import com.jeremyliao.liveeventbus.core.LiveEvent

/**
 * @author Alwyn
 * @Date 2020/10/15
 * @Description 页面通信事件
 */
data class MainEvent(val msg: String?):LiveEvent
data class TokenExpiredEvent(val msg: String?)
data class RegisterSuccessEvent(val account: String?,val pwd:String?):LiveEvent
data class SearchHistoryEvent(val code:Int):LiveEvent
data class LogoutEvent(val code:Int):LiveEvent
data class ToMoreEvent(val page:Int):LiveEvent
data class SetPwdEvent(val code:Int):LiveEvent
data class PayResultEvent(val payType:Int):LiveEvent
data class RefreshNoticeMsgEvent(val code:Int):LiveEvent
data class LoginSuccessEvent(val code:Int):LiveEvent
data class RefreshUserFmEvent(val code:Int):LiveEvent
data class RefreshWebListEvent(val code:Int):LiveEvent
data class RefreshCollectStateEvent(val originId:Int):LiveEvent
data class SwitchReadHistoryEvent(val checked: Boolean):LiveEvent
data class TodoListRefreshEvent(val code: Int, val todoInfo: TodoBean.Data):LiveEvent
data class ModifyUserInfoEvent(val msg: String?): LiveEvent
data class AddCarCompleteEvent(val msg: String?): LiveEvent
data class ReplyCompleteEvent(val msg: String?): LiveEvent
data class WxPayCompleteEvent(val msg: String?): LiveEvent
data class RefreshHisCompleteEvent(val msg: String?): LiveEvent
data class ScoreCompleteEvent(val msg: String?): LiveEvent
//接单成功
data class TakeSuccessEvent(val msg: OrderType): LiveEvent
data class WorkOrderRefreshEvent(val msg: String) : LiveEvent
data class AuditRefreshEvent(val msg: String) : LiveEvent
data class DispatchRefreshEvent(val msg: String) : LiveEvent
data class ScanResultEvent(val msg: String) : LiveEvent
data class MembersSelectEvent(val members: List<MembersBean>) : LiveEvent
data class CommunityRefreshEvent(val msg:String?):LiveEvent
data class BullentinRefreshEvent(val msg:String?):LiveEvent
data class WorkOrderDetailRefreshEvent(val msg: String) : LiveEvent
data class RefreshComplaintEvent(val msg:ComplaintType):LiveEvent

// 资产使用
data class AddPurchaseSortEvent(val bean: PurchaseOrderBean?):LiveEvent
data class AddChoosedSortEvent(val sortBean: SortBean?):LiveEvent
data class AddAssetPurchaseSortEvent(val data: List<SortBean>?):LiveEvent
data class GoToTabEvent(val index: Int?):LiveEvent
data class AddAssetHanldeFacilityEvent(val data: List<AssetHandleFacilityBean>?):LiveEvent
data class AssetResultReturnEvent(val index: Int?):LiveEvent
data class AddAssetHanldeSortEvent(val data: List<AssetHandleSortBean>?, val handleType: String?, val manageMode: Int?):LiveEvent
data class AddAssetHanldeSortSelectEvent(val data: HashMap<String,Int>?):LiveEvent

// 扫码结果返回
data class ScanResultReturnEvent(val result: String?):LiveEvent
// 盘点结果返回
data class InventoryResultReturnEvent(val tab: Int?, val mark: Int?):LiveEvent
data class RegisterResultReturnEvent(val result: Int?):LiveEvent
data class SearchParamReturnEvent(val param: String?):LiveEvent
data class InventoryHomeReturnEvent(val result: Int?):LiveEvent
data class UploadImgReturnEvent(val result: Int?):LiveEvent